//
//  XmlParserMarkedTypeList.h
//  FleaFinder
//
//  Created by Hieu Le on 4/19/13.
//  Copyright (c) 2013 Kiwiweb. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "MarketType.h"

typedef enum {
    MARKET_TYPE_TAG_ID = 0,
    MARKET_TYPE_TAG_NAME = 1,
    MARKET_TYPE_TAG_BELONGTO = 2
} MarketTypeTag;

@interface XmlParserMarkedTypeList : NSObject <NSXMLParserDelegate>
{
    NSString *tagMarkedTypes;
    NSString *tagMarkedType;
    NSString *tagId;
    NSString *tagName;
    //NSString *tagBelongTo;
    
    NSMutableArray *parsedObjects;
    MarketType *currentMarkedType;
    
    int currentTag;
    
    BOOL isInsideTagMarkedType;
    
    int count;
}

-(void) parseXML: (NSString*) sourceUrl;

-(NSMutableArray*) getParsedObjects;

@end
